PokemonSpecies

@Serializable
data class PokemonSpecies(val id: Int, val name: String, val order: Int, val genderRate: Int, val captureRate: Int, val baseHappiness: Int, val isBaby: Boolean, val isLegendary: Boolean? = null, val isMythical: Boolean? = null, val hatchCounter: Int, val hasGenderDifferences: Boolean, val formsSwitchable: Boolean, val growthRate: Handle.Named<GrowthRate>, val pokedexNumbers: List<PokemonSpeciesDexEntry>, val eggGroups: List<Handle.Named<EggGroup>>, val color: Handle.Named<PokemonColor>, val shape: Handle.Named<PokemonShape>, val evolvesFromSpecies: Handle.Named<PokemonSpecies>?, val evolutionChain: Handle.Unnamed<EvolutionChain>, val habitat: Handle.Named<PokemonHabitat>?, val generation: Handle.Named<Generation>, val names: List<Name>, val palParkEncounters: List<PalParkEncounterArea>, val formDescriptions: List<Description>, val genera: List<Genus>, val varieties: List<PokemonSpeciesVariety>, val flavorTextEntries: List<PokemonSpeciesFlavorText>) : NamedModel(source)

A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant. See: https://pokeapi.co/docs/v2#pokemonspecies

Parameters

id

The identifier for this Pokémon species resource.

name

The name for this Pokémon species resource.

order

The order in which species should be sorted.

genderRate

The chance of this Pokémon being female, in eighths; or -1 for genderless.

captureRate

The base capture rate; up to 255.

baseHappiness

The base happiness when caught by a normal Pokéball; up to 255.

isBaby

Whether or not this is a baby Pokémon.

isLegendary

Whether or not this is a legendary Pokémon.

isMythical

Whether or not this is a mythical Pokémon.

hatchCounter

Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon's egg hatches, unless utilizing bonuses like Flame Body's.

hasGenderDifferences

Whether or not this Pokémon has visual gender differences.

formsSwitchable

Whether or not this Pokémon has multiple forms and can switch between them.

growthRate

The growth rate for this Pokémon species.

pokedexNumbers

A list of Pokedexes and the indexes reserved within them for this Pokémon species.

eggGroups

A list of egg groups this Pokémon species is a member of.

color

The color of this Pokémon for Pokedex search.

shape

The shape of this Pokémon for Pokedex search.

evolvesFromSpecies

The Pokémon species that evolves into this one.

evolutionChain

The evolution chain this Pokémon species is a member of.

habitat

The habitat this Pokémon species can be encountered in.

generation

The generation this Pokémon species was introduced in.

names

The name of this Pokémon species listed in different languages.

palParkEncounters

A list of encounters that can be had with this Pokémon species in pal park.

formDescriptions

The form descriptions for this Pokémon species.

genera

The genera of this Pokémon species listed in multiple languages.

varieties

A list of the Pokémon that exist within this Pokémon species.

flavorTextEntries

A list of flavor text entries for this Pokémon species.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, order: Int, genderRate: Int, captureRate: Int, baseHappiness: Int, isBaby: Boolean, isLegendary: Boolean? = null, isMythical: Boolean? = null, hatchCounter: Int, hasGenderDifferences: Boolean, formsSwitchable: Boolean, growthRate: Handle.Named<GrowthRate>, pokedexNumbers: List<PokemonSpeciesDexEntry>, eggGroups: List<Handle.Named<EggGroup>>, color: Handle.Named<PokemonColor>, shape: Handle.Named<PokemonShape>, evolvesFromSpecies: Handle.Named<PokemonSpecies>?, evolutionChain: Handle.Unnamed<EvolutionChain>, habitat: Handle.Named<PokemonHabitat>?, generation: Handle.Named<Generation>, names: List<Name>, palParkEncounters: List<PalParkEncounterArea>, formDescriptions: List<Description>, genera: List<Genus>, varieties: List<PokemonSpeciesVariety>, flavorTextEntries: List<PokemonSpeciesFlavorText>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
val isLegendary: Boolean? = null
Link copied to clipboard
val isMythical: Boolean? = null
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
val order: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard